package month4.day24;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class C8 {
    public static void main(String[] args) {
        SimpleDateFormat s = new SimpleDateFormat("yyyy年MM月dd日 EE");
        Calendar c = Calendar.getInstance();
        for(int i=0;i<365;i++){
            c.set(2022,0,1);
            c.add(Calendar.DAY_OF_YEAR,i);
            if(c.get(Calendar.DAY_OF_WEEK)==7){
                if(c.get(Calendar.WEEK_OF_MONTH)==1)
                    System.out.println(s.format(c.getTime()));
            }
        }
    }
}
